<?php
function logic($c,$d)
{
$temp=$c;
$c=$d;
$d=$temp;
echo "value of a inside func = $c \n ";
echo "value of b inside func = $d \n ";

	    	
}


$a=5;
$b=10;
echo "value of a before func call = $a \n ";
echo "value of b before func call = $b \n ";


logic($a,$b);

echo "value of a after func call = $a \n ";
echo "value of b after func call= $b \n ";




?>